<#assign css> </#assign>
<#assign js> </#assign>
<#import "/admin/common/home.html" as home>
<#import "/admin/common/admin.html" as admin>
<#import "/common/wlkj.html" as wlkj>
<#escape x as (x)!"">
<@home.home pagecss=css pagejs=js>
<form  action="list" id="pageListForm" method="post" class="form-inline">
	<input type="hidden" name="targetId" value="${param.targetId}" />
	<input type="hidden" name="targetType" value="${param.targetType}" />
	<input type="hidden" name="type" value="${param.type}" />
	<input type="hidden" name="busType" value="${param.busType}" />
	<div class="main-container">
		<table class="table table-bordered table-hover">
			<thead class="thead thead-more">
				<tr>
					<th>任务类型</th>
					<th>任务总数</th>
					<th>执行成功数</th>
					<th>执行失败数</th>
					<th>状态</th>
					<th>操作人</th>
					<th>操作时间</th>
				</tr>
			</thead>
			<tbody class="tbody mod-tbody">
				<#if page?? && page.list ?? && page.list?size gt 0>
				<#list page.list as item>

				<#assign annotation = annotationMap[item.type] />
				<tr>
					<td>${annotation.name()}</td>
					<td>${item.totalNum}</td>
					<td>${item.okNum}</td>
					<td>${item.errorNum}</td>
					<td>
						<#if item.state == -1> 待执行
						<#elseif item.state == 0>执行中
						<#elseif item.state == 1>执行完成
						<#elseif item.state == 2>执行失败
						</#if>
					</td>
					<td><@admin.operateUser userId=item.createUser! /></td>
					<td>${item.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
				</tr>
				</#list>
				<#else>
				<tr>
					<td colspan="9"><p class="no-data">没有相关数据</p></td>
				</tr>
			</#if>
			</tbody>
		</table>
		<div class="ui-page">
			<#include "/admin/common/page.html">
		</div>
	</div>
</form>
</@home.home>
</#escape>